<?php


class App_Form_Photos_Form extends Zend_Form
{
    function init()
    {

        $this->setMethod('post');
        $this->setAction('');
        $this->setAttrib('enctype', 'multipart/form-data');

        $id = new Zend_Form_Element_Hidden('id');
        $this->addElement($id);

         $img = new Zend_Form_Element_File('img');
        $img->setLabel('Image:')
            ->setDestination(dirname(APPLICATION_PATH) . '/public/images/photos/');
        $this->addElement($img);
        
        $public = new Zend_Form_Element_Checkbox('public');
        $public->setLabel('Public:');
        $this->addElement($public);



        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Save');

        $this->addElement($submit);

    }
}
